package 行为型模式.责任链模式;

public class Client {
    public static void main(String[] args) {
        //床架一个请假条对象
        LeaveRequest leave=new LeaveRequest("小米",1,"身体不适");

        //创建各级领导对象
        GroupLeader groupLeader=new GroupLeader();
        Manage manage=new Manage();
        GeneralManage generalManage=new GeneralManage();

        //设置处理者链
        generalManage.setHandler(manage);
        manage.setHandler(generalManage);

        //小米提交请假申请
        groupLeader.submit(leave);
    }
}
